package jp.aist.gtrc.plus.scheduler.algorithm;

import jp.aist.gtrc.plus.scheduler.status.JobStatus;
import jp.aist.gtrc.plus.scheduler.util.Checker;

import jp.aist.gtrc.plus.scheduler.specific.pbs.status.PBSJobStatus;

/*
 * Check if the job is not QoS job
 * We use -l deadline to imply QoS job
 */ 
public class BestEffortJobChecker extends Checker<JobStatus>{

	public boolean isOK(JobStatus job){

                PBSJobStatus pbsJobStatus = (PBSJobStatus) job;
		if (pbsJobStatus.getDeadline() == Integer.MAX_VALUE) {
                    return true; 
		}

		return false;

	}

}
